<template>
  <el-dialog
    :title="title"
    :visible.sync="visible"
    :destroy-on-close="close_modal_destroy"
    :close-on-click-modal="close_modal"
    @close="handleCancel"
    width="400px"
    append-to-body
  >
  </el-dialog>
</template>

<script>
export default {
  name: "personLifeShare",
  data() {
    return {
      title: '发布你的健康生活',
      visible: false,
      close_modal_destroy: true,
      close_modal: false
    }
  },
  methods: {
    add() {
      this.title = ''
      this.visible = true
    },
    handleCancel() {
      this.close()
    },
    close() {
      this.$emit('close')
      this.visible = false
    },
  }
}
</script>

<style scoped>

</style>
